Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
lemonadejs
Advanced tools
Lemonade is a lightweight, micro reactive vanilla javascript library to create quick and reusable JS components without dependencies.
LemonadeJS is a super lightweight reactive vanilla javascript micro-library (7 KBytes). It aims to help the integration between the JavaScript (controllers) and the HTML (view). It supports two-way binding and integrates natively with jSuites to help to create amazing interfaces quicker.
It would help you deliver reusable components and does not require transpilers, babel, or hundreds of other dependencies. It works just fine in any javascript dev environment. LemonadeJS has a quick learning curve and keeps coding fun and very close to native JS.
Build modern applications with lemonadeJS and node.
See this example on codesandbox
import lemonade from "lemonadejs";
import Hello from "./Hello";
export default function App() {
let self = {};
self.count = 1;
let template = `<div>
<div><Hello /></div>
<p>You clicked {{self.count}} times</p>
<button onclick="self.count++;">Click me</button>
</div>`;
return lemonade.element(template, self, { Hello });
}
Simplicity to run in the browser without dependencies, servers, transpilers.
<html>
<body>
<div id="root"></div>
<script src="https://cdn.jsdelivr.net/npm/lemonadejs/dist/lemonade.min.js"></script>
<script>
function Hello() {
let self = this;
let template = `<h1>{{self.title}}</h1>`;
return lemonade.element(template, self);
}
function App() {
let self = {};
self.count = 1;
let template = `<>
<Hello title="your title" />
<p>You clicked {{self.count}} times</p>
<button onclick="self.count++;">Click me</button>
</>`;
return lemonade.element(template, self, { Hello });
}
lemonade.render(App, document.getElementById('root'));
</script>
</body>
</html>
import lemonade from "lemonadejs";
export default function Component() {
let self = {};
self.rows = [
{ title:'Google', description: 'The alpha search engine...' },
{ title:'Bind', description: 'The microsoft search engine...' },
{ title:'Duckduckgo', description: 'Privacy in the first place...' },
];
// Custom components such as List should always be unique inside a real tag.
let template = `<table cellpadding="6">
<thead><tr><th>Title</th><th>Description</th></th></thead>
<tbody @loop="self.rows">
<tr><td>{{self.title}}</td><td>{{self.description}}</td></tr>
</tbody>
</table>`;
return lemonade.element(template, self);
}
<html>
<body>
<div id='root'></div>
<script src="https://cdn.jsdelivr.net/npm/lemonadejs/dist/lemonade.min.js"></script>
<script>
var Component = (function() {
// Create the self object
var self = {};
self.test = function(e) {
console.log(e);
e.preventDefault();
}
// The property call is added to the observable list when added to the DOM
var template = `<>
<input type="button" value="Click test" onclick="self.test(e);"/>
</>`;
// Render the template and create the observation
return lemonade.element(template, self);
});
// Render the LemonadeJS element into the DOM
lemonade.render(Component, document.getElementById('root'));
</script>
</body>
</html>
<html>
<body>
<div id='root'></div>
<script src="https://cdn.jsdelivr.net/npm/lemonadejs/dist/lemonade.min.js"></script>
<script>
var App = (function() {
let self = {};
self.disabled= false;
let template = `<>
<button onclick="self.disabled = !self.disabled">Toggle</button>
<input type="text" disabled="{{self.disabled}}" />
</>`;
return lemonade.element(template, self);
});
lemonade.render(App, document.getElementById('root'));
</script>
</body>
</html>
% npm install lemonadejs
This software is free to use and it is distributed under the MIT license.
https://jsuites.net
https://jspreadsheet.com/home
https://bossanova.uk/jspreadsheet
FAQs
Lemonade is a lightweight, micro reactive JavaScript library to create quick and reusable reactive JS components. No dependencies or transpile is require
The npm package lemonadejs receives a total of 1,305 weekly downloads. As such, lemonadejs popularity was classified as popular.
We found that lemonadejs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.